package de.tum.in.eist.poll.client;

import java.util.ArrayList;

import com.google.gwt.user.client.rpc.RemoteService;
import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;

import de.tum.in.eist.poll.shared.*;

@RemoteServiceRelativePath("pollService")
/**
 * Client side RPC interface.
 * 
 */
public interface PollService extends RemoteService {

	User login(String name, String password);
	User loginFromSession();
	void logout();
	void submitFeedback(Feedback feedback);
	boolean checkRatingStatus(Lecture lecture);
	ArrayList<Lecture> requestLectures();
	ArrayList<Feedback> requestFeedback(Lecture lecture);
	Lecture getLecture(int id);
}
